/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-02-12
 * Time: 10:24
 */
class Solution11 {
    public int multiply(int A, int B) {
        int sum = 0;
        if (A <= B) {
            for (int i = 1; i <= A; i++) {
                sum += B;
            }
        }else{
            for (int i = 1; i <= B; i++) {
                sum += A;
            }
        }

        return sum;
    }
}
public class Test11 {
}
